package cn.edu.ujs.coor.repository.group;

import cn.edu.ujs.coor.model.Group;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 分组Repository
 *
 * @author 柳曾雄
 * @date 2018-07-31
 */
@Repository
public interface GroupRepository extends JpaRepository<Group, String>, JpaSpecificationExecutor<Group> {

    /**
     * 根据组织查询分组
     * @param organizationId
     * @return
     */
    List<Group> findByOrganizationId (String organizationId);
}
